package com.phiture.erp.produce.dal.mapper;

import java.util.*;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import com.phiture.erp.produce.dal.entity.ErpProduceInEventItemsDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 生产入库事务明细 Mapper
 *
 * @author lekaihuai
 */
@Mapper
public interface ProduceInEventItemsMapper extends BaseMapperX<ErpProduceInEventItemsDO> {

    default List<ErpProduceInEventItemsDO> selectListByParentId(Long parentId) {
        return selectList(ErpProduceInEventItemsDO::getParentId, parentId);
    }

    default int deleteByParentId(Long parentId) {
        return delete(ErpProduceInEventItemsDO::getParentId, parentId);
    }

}
